Continuations: Multiple Invocations Considered Harmful

نویسنده

  • Luis Mateu
چکیده

In this paper, we propose to replace Scheme rst class continuations by a sequential thread system. Our threads are very close to continuations but they are easier to understand and to use for programmers, and its implementation is simpler and more eecient. We show that with our threads we can recover almost completely the Scheme operator call-with-current-continuation (call/cc for short). The only functionality we dismiss is what makes this operator diicult to understand and to implement: the multiple invocations of the same continuation. We think this diierence will aaect the behavior of only a few programs written in Scheme, but it will allow a faster execution of all programs. Moreover, our threads can be naturally extended to a concurrent version of Scheme, without the known problems of continuations.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Software-Based Method-Level Speculation Framework for the Java Platform

With multicore processors becoming ubiquitous on computing devices, the need for both parallelizing existing sequential applications and designing new parallel applications is greatly intensified. With our work, we intend to tackle the former issue. In this paper, we present the design of a software-based automatic parallelization framework for sequential applications that run on the Java platf...

متن کامل

Automated extraction of motivic patterns and application to the analysis of Debussy’s Syrinx

The basic principle of motivic pattern extraction consists of detecting repeated motives, i.e. identifying several short extracts or subsequences as instances, or occurrences, of a same series of description called pattern. The approach is focused here on monodic sequences: music is considered as a series of notes without superpositions. Patterns are formalised as chains of states – called patt...

متن کامل

HOMA: automatic re-scheduling of multiple invocations in CORBA

This report presents Homa, an efficient and scalable CORBA-based code coupling environment. Homa is composed by an IDL compiler and a runtime support. From IDL definitions of CORBA objects, Homa compiler automatically extracts all the informations which allow efficient and scalable composition of method invocations. The compiler and runtime support rely on two functionalities: the automatic ext...

متن کامل

Fusion of Concurrent Invocations of Exclusive Methods

This paper describes a mechanism for “fusing” concurrent invocations of exclusive methods. The target of our work is object-oriented languages with concurrent extensions. In the languages, concurrent invocations of exclusive methods are serialized; only one invocation executes immediately and the others wait for their turn. The mechanism fuses multiple waiting invocations to a cheaper operation...

متن کامل

Continuation-based Mobile Personalization Agent in Human Behavior Change

Lifestyle choices and habits considered harmful, such as smoking, excessive alcohol use or fast food consumption, can cause organizations to perform inefficiently due to health concerns and lowered work performance. These choices may not be rational, and with proper motivation and inducement, the users could be persuaded to change their behaviours towards healthier lifestyle. In the literature,...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2008